--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit ff48661f60df3deab26029b3d45ff2e2a96cae5e
Parents : afe529f
Author : Mark Qvist <mark@unsigned.io>
Date : 2022-09-14T16:30:42+02:00
Added version file
Changes
3 files changed, 6 insertions(+), 1 deletions(-)
Diff
diff --git a/LXMF/__init__.py b/LXMF/__init__.py
index e0924fe..dc0abbb 100644
--- a/LXMF/__init__.py
+++ b/LXMF/__init__.py
@@ -3,5 +3,7 @@ import glob
from .LXMessage import LXMessage
from .LXMRouter import LXMRouter
+from ._version import __version__
+
modules = glob.glob(os.path.dirname(__file__)+"/*.py")
__all__ = [ os.path.basename(f)[:-3] for f in modules if not f.endswith('__init__.py')]
\ No newline at end of file
diff --git a/LXMF/_version.py b/LXMF/_version.py
new file mode 100644
index 0000000..283b03a
--- /dev/null
+++ b/LXMF/_version.py
@@ -0,0 +1 @@
+__version__ = "0.1.7"
\ No newline at end of file
diff --git a/setup.py b/setup.py
index 449ec5f..5695c2a 100644
--- a/setup.py
+++ b/setup.py
@@ -3,9 +3,11 @@ import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
+exec(open("LXMF/_version.py", "r").read())
+
setuptools.setup(
name="lxmf",
- version="0.1.7",
+ version=__version__,
author="Mark Qvist",
author_email="mark@unsigned.io",
description="Lightweight Extensible Message Format for Reticulum",
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────